#include <stdio.h>
#include <stdlib.h>
#include "string.h"
int main(void)
{
     String string;
     InitString(&string);
     StrAssign(&string, "abcde");
     StrPrint(&string);
     String T;
     InitString(&T);
     StrCopy(&T, &string);
     StrPrint(&T);
     StrAssign(&T, "abxyzb");
     int res = StrCompare(&string,&T);
     printf("result = %d\n",res);
     String Z;
     InitString(&Z);
     StrConcat(&Z,&string,&T);
     StrPrint(&Z);
     String sub;
     InitString(&sub);
     SubString(&Z, &sub, 3, 3);
     StrPrint(&sub);
     StrInsert(&string,5,&sub);
     StrPrint(&string);
     StrDelete(&string,5,3);
     StrPrint(&string);
     return 0;
}
